package com.wiz.weixin.vo;

import java.io.Serializable;

/**
 * 生成二维码，得到ticket参数

 * @author xxy
 */
public class CodeTicket implements Serializable{
	private static final long serialVersionUID = -2409052648490460787L;
	
	private String action_name;
	private ActionInfo action_info;
	private int expire_seconds;

	public CodeTicket() {
		super();
	}

	public CodeTicket(String action_name, ActionInfo action_info) {
		super();
		this.action_name = action_name;
		if (action_name.equals("QR_SCENE")) {
			this.expire_seconds = 604800;
		}
		this.action_info = action_info;
	}

	public String getAction_name() {
		return action_name;
	}

	public void setAction_name(String action_name) {
		this.action_name = action_name;
	}

	public ActionInfo getAction_info() {
		return action_info;
	}

	public void setAction_info(ActionInfo action_info) {
		this.action_info = action_info;
	}

	public int getExpire_seconds() {
		return expire_seconds;
	}

	public void setExpire_seconds(int expire_seconds) {
		this.expire_seconds = expire_seconds;
	}

	// "": 604800, "": "QR_SCENE", "": {"scene": {"scene_id": 123
}
